home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / scripts / glass.shader < prev    next >
Encoding:
Text File  |  2000-11-20  |  4.3 KB  |  248 lines

  1. textures/glass/rnd_frms2light
  2. {
  3.     surfaceparm nolightmap
  4.     
  5.     surfacelight 1500
  6.     qer_editorimage textures/glass/rnd_frms2.tga
  7.     q3map_surfacelight 1500
  8.     { 
  9.         map textures/glass/rnd_frms2.tga
  10.     }
  11. }
  12.  
  13.  
  14. // pete
  15. textures/glass/rnd_ledm
  16. {
  17.     surfaceparm nolightmap
  18.     surfaceparm trans
  19.     surfaceparm alphashadow
  20.     qer_trans 0.5
  21.     qer_editorimage textures/glass/rnd_ledm1.tga
  22.     { 
  23.         map textures/glass/rnd_ledm1.tga        
  24.         blendFunc GL_ONE GL_ONE
  25.         rgbGen identity
  26.     }
  27.     {
  28.         map textures/glass/rnd_ledm2.tga
  29.         blendFunc GL_ZERO GL_SRC_COLOR
  30.         rgbGen identity 
  31.     }
  32. }
  33.  
  34. // pete -- more transparent version
  35. textures/glass/rnd_ledm2
  36. {
  37.     surfaceparm nolightmap
  38.     surfaceparm trans
  39.     qer_trans 0.5
  40.     qer_editorimage textures/glass/rnd_ledm1a.tga
  41.     { 
  42.         map textures/glass/rnd_ledm1a.tga        
  43.         blendFunc GL_ONE GL_ONE
  44.         rgbGen identity
  45.     }
  46.     {
  47.         map textures/glass/rnd_ledm2.tga
  48.         blendFunc GL_ZERO GL_SRC_COLOR
  49.         rgbGen identity 
  50.     }
  51. }
  52.  
  53.  
  54. //glass window alpha Steve H
  55. textures/glass/window01sh
  56. {
  57.     qer_editorimage textures/glass/window01sh.tga
  58.     surfaceparm trans
  59.     {
  60.         map textures/glass/window01sh.tga
  61.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  62.     }
  63.     {    
  64.         map $lightmap
  65.         blendfunc filter
  66.         rgbGen identity
  67.     }
  68. }
  69.  
  70. //glass window alpha Steve H
  71. textures/glass/window02sh
  72. {
  73.     qer_editorimage textures/glass/window02sh.tga
  74.     surfaceparm trans
  75.     {
  76.         map textures/glass/window02sh.tga
  77.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  78.     }
  79.     {    
  80.         map $lightmap
  81.         blendfunc filter
  82.         rgbGen identity
  83.     }
  84. }
  85.  
  86. //glass window alpha Steve H
  87. textures/glass/window03sh
  88. {
  89.     qer_editorimage textures/glass/window03sh.tga
  90.     surfaceparm trans
  91.     {
  92.         map textures/glass/window03sh.tga
  93.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  94.     }
  95.     {    
  96.         map $lightmap
  97.         blendfunc filter
  98.         rgbGen identity
  99.     }
  100. }
  101.  
  102. //glass pane alpha Steve H
  103. textures/glass/glass_pane1sh
  104. {
  105.     qer_editorimage textures/glass/glass_pane1sh.tga
  106.     surfaceparm trans
  107.     
  108.     {
  109.         map textures/glass/glass_pane1sh.tga
  110.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  111.         alphafunc gt0
  112.     }
  113.     {    
  114.         map $lightmap
  115.         blendfunc filter
  116.         rgbGen identity
  117.     }
  118. }
  119.  
  120. //glass flat milky alpha Steve H
  121. textures/glass/glass_flatmilky1sh
  122. {
  123.     qer_editorimage textures/glass/glass_flatmilky1sh.tga
  124.     surfaceparm trans
  125.     
  126.     {
  127.         map textures/glass/glass_flatmilky1sh.tga
  128.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  129.         alphafunc gt0
  130.     }
  131.     {    
  132.         map $lightmap
  133.         blendfunc filter
  134.         rgbGen identity
  135.     }
  136. }
  137.  
  138. //Ice alpha Steve H
  139. textures/natural/ice_1
  140. {
  141.     qer_editorimage textures/natural/ice_1.tga
  142.     surfaceparm trans
  143.     {    
  144.         map $lightmap
  145.         blendfunc filter
  146.         rgbGen identity
  147.     }    
  148.     {
  149.         map textures/natural/ice_1.tga
  150.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  151.     }    
  152. }
  153.  
  154. //Ice alpha Steve H
  155. textures/natural/ice_2
  156. {
  157.     qer_editorimage textures/natural/ice_2.tga
  158.     surfaceparm trans
  159.     {    
  160.         map $lightmap
  161.         blendfunc filter
  162.         rgbGen identity
  163.     }
  164.     {
  165.         map textures/natural/ice_2.tga
  166.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  167.     }    
  168. }
  169.  
  170. //king sceptre
  171. models/weapons/king_sceptre
  172. {
  173.     qer_editorimage models/weapons/king_sceptre.tga
  174.     surfaceparm trans
  175.     {    
  176.         map $lightmap
  177.         blendfunc filter
  178.         rgbGen identity
  179.     }    
  180.     {
  181.         map models/weapons/king_sceptre.tga
  182.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  183.         alphagen dot 1 0            
  184.     }    
  185.     {
  186.         map textures/testliq/bw_top.tga
  187.         blendfunc gl_src_alpha gl_one_minus_src_alpha
  188.         alphagen constant .2
  189.         tcgen environment
  190.     }    
  191. }
  192.  
  193. textures/queen/keep_window03
  194. {
  195.     qer_editorimage textures/queen/keep_window03.tga
  196.     {    
  197.         map $lightmap
  198.         rgbGen identity
  199.     }
  200.     {
  201.         map textures/queen/keep_window03.tga
  202.         blendfunc filter
  203.         rgbGen identity
  204.     }
  205.     {
  206.         map textures/queen/keep_window04.tga
  207.         blendfunc add
  208.         rgbGen wave sin 0.6 0.4 0.5 .25
  209.     }
  210. }
  211.  
  212. textures/queen/keep_window03a
  213. {
  214.     qer_editorimage textures/queen/keep_window03a.tga
  215.     {    
  216.         map $lightmap
  217.         rgbGen identity
  218.     }
  219.     {
  220.         map textures/queen/keep_window03a.tga
  221.         blendfunc filter
  222.         rgbGen identity
  223.     }
  224.     {
  225.         map textures/queen/keep_window04a.tga
  226.         blendfunc add
  227.         rgbGen wave sin 0.6 0.4 0.5 .25
  228.     }
  229. }
  230.  
  231. textures/queen/keep_brick2_4sh
  232. {
  233.     qer_editorimage textures/queen/keep_brick2_4sh.tga
  234.     {    
  235.         map $lightmap
  236.         rgbGen identity
  237.     }
  238.     {
  239.         map textures/queen/keep_brick2_4sh.tga
  240.         blendfunc filter
  241.         rgbGen identity
  242.     }
  243.     {
  244.         map textures/queen/keep_brick2_4ash.tga
  245.         blendfunc add
  246.         rgbGen wave sin 0.6 0.2 0.5 .25
  247.     }
  248. }